<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head>
	<title>举报管理</title>
	<script>
		$(document).ready(function() {
			//聚焦第一个输入框
			$("#user-tab").addClass("active");
		});
	</script>
</head>
<jsp:include page="/WEB-INF/views/common.jsp"/>
<body>
	<c:if test="${not empty message}">
		<div id="message" class="alert alert-success"><button data-dismiss="alert" class="close">×</button>${message}</div>
	</c:if>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
        <tr>
            <th>举报用户userId</th>
            <th>举报地址</th>
            <th>纬度</th>
            <th>经度</th>
            <th>举报内容</th>
            <th>举报类型</th>
        </tr>
        </thead>
		<tbody>
		<c:forEach items="${list}" var="entity">
			<tr>
				<td>${entity.userId}</td>
				<td>${entity.address}</td>
                <td>${entity.lat}</td>
                <td>${entity.lng}</td>
                <td>${entity.content}</td>
                <td title="举报类型   0 工商，假昌等   由后台管理员定义，将来扩展举报输出接口用">${entity.type}</td>
                <td>
				</td>
			</tr>
		</c:forEach>
		</tbody>
        <tfoot>
        <tr align="right">
            <td colspan="6" >
                <a href="${ctx}/web/report/reportlist?pageNo=1" title="首页">首页</a>
                <a href="${ctx}/web/report/reportlist?pageNo=${pageVO.pageNo-1}" title="上一页">上一页</a>
                <a href="${ctx}/web/report/reportlist?pageNo=${pageVO.pageNo+1}" title="下一页">下一页</a>
                <a href="${ctx}/web/report/reportlist?pageNo=${pageVO.totalPage}" title="尾页">尾页</a>
                ${pageVO.pageNo}/${pageVO.totalPage} 总数:${pageVO.totalCount} 总页数: ${pageVO.totalPage}
            </td>
        </tr>
        </tfoot>
    </table>
</body>
</html>
